Versions:

  • 2.8.0
  • 2.7.0

watchexec is a command-line tool that executes commands in response to file modifications. It watches files and directories and, as soon as something changes, runs the command it has been given. The open-source project is written in Rust and belongs to the category of developer tools and file watchers. Its main use is the automation of repetitive steps during software development: recompiling a program whenever a source file is saved, running the test suite again after each change, restarting a local server, or regenerating documentation and other build artefacts. Because the command to run is freely chosen, the tool is independent of any particular programming language or build system and can be placed in front of compilers, test runners, linters or scripts alike. It is also useful outside programming, for instance to trigger a conversion or synchronisation job when files in a folder are updated. The current version is 2.8.0, and several versions are available in the catalog.

Tags: